package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * HealthCalcRule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "HEALTH_CALC_RULE")
public class HealthCalcRule implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 2424735129196868820L;

    private Long id;
    private Integer minor;
    private Integer warn;
    private Integer error;
    private Integer fatal;
    private Integer arithmetic;

    // Constructors

    /** default constructor */
    public HealthCalcRule() {
    }

    /** minimal constructor */
    public HealthCalcRule(Long id) {
        this.id = id;
    }

    /** full constructor */
    public HealthCalcRule(Long id, Integer minor, Integer warn, Integer error, Integer fatal, Integer arithmetic) {
        this.id = id;
        this.minor = minor;
        this.warn = warn;
        this.error = error;
        this.fatal = fatal;
        this.arithmetic = arithmetic;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "HEALTH_CALC_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "MINOR", precision = 9, scale = 0)
    public Integer getMinor() {
        return this.minor;
    }

    public void setMinor(Integer minor) {
        this.minor = minor;
    }

    @Column(name = "WARN", precision = 9, scale = 0)
    public Integer getWarn() {
        return this.warn;
    }

    public void setWarn(Integer warn) {
        this.warn = warn;
    }

    @Column(name = "ERROR", precision = 9, scale = 0)
    public Integer getError() {
        return this.error;
    }

    public void setError(Integer error) {
        this.error = error;
    }

    @Column(name = "FATAL", precision = 9, scale = 0)
    public Integer getFatal() {
        return this.fatal;
    }

    public void setFatal(Integer fatal) {
        this.fatal = fatal;
    }

    @Column(name = "ARITHMETIC", precision = 2, scale = 0)
    public Integer getArithmetic() {
        return this.arithmetic;
    }

    public void setArithmetic(Integer arithmetic) {
        this.arithmetic = arithmetic;
    }

    @Override
    public String toString() {
        return "HealthCalcRule [id=" + id + ", minor=" + minor + ", warn=" + warn + ", error=" + error + ", fatal=" + fatal + ", arithmetic=" + arithmetic + "]";
    }

}